You are here: Custom Study Programming > Reference > Classes > StudyData > StudyData Methods > remove

remove

The remove method removes a value at a given index.

 

Syntax

remove(index);

Parameters

index

Index location where to remove the value from.

Example

function calculate(beginIndex, endIndex)

{

var studyData = this.getStudyData("customSMA");

if(studyData != null)

{

//remove first value from StudyData object

if(studyData.count() > 0)

studyData.remove(0);

}

}

 


Copyright © 2006-2009 ActiveTick LLC